package com.wtc.homework6;

public class Homework11 {
    public static void main(String[] args) {
        Person person = new Student();
        person.eat();
        person.run();
        Student student = (Student) person;
        student.run();
        student.study();
        student.eat();
        Student stu = new Student();
        stu.study();
        stu.run();
        Person person1 = (Person) stu;
        person1.run();
        person1.eat();
    }
}
